package Main;
import java.io.IOException;
import java.util.Queue;
import java.util.Scanner;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;

import Agent.AbstractAgent;
import Agent.SpeedNutAgent;
import Env.Environment;
import Env.IoHandler;

public class Main {

	
	public static Logger log;
	/**
	 * @param args
	 * @throws Throwable
	 */
	public static void main(String[] args) throws Throwable {
		//adding logger
		try{
		  FileHandler hand = new FileHandler("logger.xml");
		  log = Logger.getLogger("logy the logger");
		  log.addHandler(hand);
		  log.setLevel(Level.FINE);
		}catch(IOException e){}
		
		
		
		
		
		
		Environment e= IoHandler.fileParser("test");
		
		
		AbstractAgent x= new SpeedNutAgent(1, e);
		x.move();
		x.move();
		x.move();
		
		System.out.println("environment is:");
		System.out.println(e);
		
	}
}
